#include<bits/stdc++.h>
#define N 100010
using namespace std;
int n,a[N];
inline void read(int &x)
{
    x = 0;
    int f = 1;
    char s= getchar();
    while(s < '0' || s > '9')
    {
        if(s == '-') f = -1;
        s = getchar();
    }
    while(s >= '0' && s <= '9')
    {
        x = x * 10 + s - 48;
        s = getchar();
    }
    x *= f;
    return;
}
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    read(n);
    for(int i = 1;i <= n;i ++) read(a[i]);
    sort(a + 1,a + 1 + n);
    int l = 2,r = n,ll = 1;
    while(l <= r)
    {
        if(a[l + 1] > a[ll]) n --,ll ++;
        l ++;
    }
    printf("%d\n",n);
    return 0;
}